<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>棒棒糖</title>
		<style>
			.r{
				width: 500px;
				height: 500px;
				background-color: #ff0000;
				border-radius:500px 500px;
			}
			.y{
				width: 350px;
				height: 350px;
				background-color: #ffaa00;
				border-radius: 350px 350px;
			position: relative;
			left:75px;
			top:75px;
			}
			.g{
				width: 200px;
					height: 200px;
					background-color: #00aa00;
				border-radius: 200px 200px;
				position: relative;
				left:75px;
				top:75px;
			}
			p{
				width: 50px;
					height: 600px;
					background-color: #aa5500;
			position: relative;
			left: 588px;
			    top: -160px;
				/* 转换属性：旋转，缩放，平移 transform */
			    transform: rotate(135deg);
			}
			
		</style>
	</head>
	<body>
		<div class="r">
			<div class="y">
				<div class="g"></div>
			</div>
		</div>
		<!-- 选择器：抓取页面元素， 
		 类选择器：通用属性class="  "-->
		
		<p></p>
		
		
		
		
	</body>
</html>